package ru.spies.dbfunctional;

import java.sql.ResultSet;
import java.sql.SQLException;

import javax.servlet.http.HttpServletRequest;

public interface ICallFunction {
	
	public ResultSet getResultSet(HttpServletRequest request) throws SQLException, InstantiationException, IllegalAccessException, ClassNotFoundException;
	
	public String[] getColumns(boolean withLocale);
	
	public void fillTable(ResultSet result, String cols[]) throws SQLException;

	void openConnection() throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException;

	void closeConnection() throws SQLException;
	
}
